package com.example.cny.activity;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.example.cny.R;
import com.example.cny.contract.WelcomeContract;
import com.example.mylibrary.base.BaseNoDaggerActivity;

public class WelcomeActivity extends BaseNoDaggerActivity implements WelcomeContract.View, View.OnClickListener {

    @Override
    protected int getLayoutRes() {
        return R.layout.activity_welcome;
    }

    @Override
    protected void initData() {
        findViewById(R.id.enter_system_btn).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.enter_system_btn:
                next();
                break;
        }
    }

    @Override
    public void next() {
        startActivity(new Intent(WelcomeActivity.this, LoginActivity.class));
    }
}
